package com.mall.order;

import com.mall.order.dto.*;

/**
 * 订单相关业务
 */
public interface OrderCoreService {

    /**
     * 创建订单
     * @param request
     * @return
     */
    CreateOrderResponse createOrder(CreateOrderRequest request);

    //取消订单
    CancelOrderResponse cancelOrder(CancelOrderRequest request);

    //修改订单支付为支付成功
    Boolean payOrderSuccess(String orderId);

    //扣减冻结库存
    Boolean updateLockCount(String orderId);
}
